﻿<controls:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/datagrid" xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" mc:Ignorable="d" x:Class="Crm.Views.Gorusme"
           Width="800" Height="630" 
           Title="Yeni Görüşme">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.053*"/>
            <RowDefinition Height="0.947*"/>
            <RowDefinition Height="41"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <controls:TabControl x:Name="tbctrl" Margin="0" Grid.Row="1">
            <controls:TabItem x:Name="tbGorusme" Header="Görüşme Bilgileri">
                <Grid Background="White">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.21*"/>
                        <ColumnDefinition Width="0.79*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="0.25*"/>
                        <RowDefinition Height="0.25*"/>
                        <RowDefinition Height="0.5*"/>
                    </Grid.RowDefinitions>
                    <TextBlock Margin="0,2,4,2" TextWrapping="Wrap" Text="Firma Tipi" HorizontalAlignment="Right" Width="72" VerticalAlignment="Center" FontSize="13.333" TextAlignment="Right"/>
                    <ComboBox x:Name="cmbFirmaTip" Grid.Column="1" Margin="4,2,198,2" BorderThickness="1"/>
                    <TextBlock Margin="0,7,4,8" TextWrapping="Wrap" Text="Hesap Kodu" HorizontalAlignment="Right" Width="93" FontSize="13.333" Grid.Row="1" d:LayoutOverrides="Height" TextAlignment="Right" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtHesapKodu" Grid.Column="1" Margin="4,2,136,2" Grid.Row="1" TextWrapping="Wrap" BorderThickness="1"/>
                    <TextBlock Margin="0,6,4,8" TextWrapping="Wrap" Text="Hesap Adı" HorizontalAlignment="Right" Width="93" FontSize="13.333" Grid.Row="2" TextAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtHesapAdi" Grid.Column="1" Margin="4,2,136,2" Grid.Row="2" TextWrapping="Wrap" BorderThickness="1"/>
                    <TextBlock Margin="0,8,4,8" TextWrapping="Wrap" Text="Adres" HorizontalAlignment="Right" Width="125" FontSize="13.333" Grid.Row="3" TextAlignment="Right" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtAdres" Grid.Column="1" Margin="4,2,136,2" Grid.Row="3" TextWrapping="Wrap" BorderThickness="1"/>
                    <Button x:Name="btnAdresAra" Content="?" Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,100,2" Grid.Row="3" Width="32" BorderThickness="1" Click="btnAdresAra_Click"/>
                    <TextBlock Margin="0,8,4,8" TextWrapping="Wrap" Text="Yetkili" HorizontalAlignment="Right" Width="116" FontSize="13.333" Grid.Row="4" TextAlignment="Right" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtYetkili" Grid.Column="1" Margin="4,2,136,2" Grid.Row="4" TextWrapping="Wrap" BorderThickness="1"/>
                    <TextBlock x:Name="lblBaslangic" Margin="0,10,4,8" TextWrapping="Wrap" Text="Görüşme Başlangıcı" HorizontalAlignment="Right" Width="147" FontSize="13.333" Grid.Row="5" TextAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <controls:DatePicker x:Name="dteBaslangic" Grid.Column="1" HorizontalAlignment="Left" Margin="4,2,0,2" Grid.Row="5" Width="130" BorderThickness="1" IsDropDownOpen="False"/>
                    <controls:DatePicker x:Name="dteBitis" Grid.Column="1" Margin="0,2,128,2" Grid.Row="5" HorizontalAlignment="Right" Width="120" BorderThickness="1" IsDropDownOpen="False"/>
                    <TextBlock x:Name="lblBitis" Margin="247,10,253,8" TextWrapping="Wrap" Text="Görüşme Bitişi" FontSize="13.333" Grid.Row="5" TextAlignment="Right" Grid.Column="1" VerticalAlignment="Center"/>
                    <TextBlock x:Name="lblGorusmeTipi" Margin="0,8,4,4" TextWrapping="Wrap" Text="Görüşme Tipi" HorizontalAlignment="Right" Width="147" FontSize="13.333" Grid.Row="6" TextAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <ComboBox x:Name="cmbGorusmeTipi" Grid.Column="1" HorizontalAlignment="Left" Margin="4,2,0,2" Grid.Row="6" Width="278" BorderThickness="1"/>
                    <TextBlock x:Name="lblRandevuyeri" Margin="0,8,4,6" TextWrapping="Wrap" Text="Görüşme Yeri" HorizontalAlignment="Right" Width="147" FontSize="13.333" Grid.Row="7" TextAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtGorusmeYeri" Grid.Column="1" Margin="4,2,171,2" Grid.Row="7" TextWrapping="Wrap"/>
                    <TextBlock Margin="0,2,4,2" TextWrapping="Wrap" Text="Konu" HorizontalAlignment="Right" Width="147" FontSize="13.333" Grid.Row="8" TextAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtKonu" Grid.Column="1" Margin="4,2,171,2" Grid.Row="8" TextWrapping="Wrap"/>
                    <TextBox x:Name="txtDetay" Grid.Column="1" Margin="4,2,171,2" Grid.Row="9" TextWrapping="Wrap"/>
                    <TextBlock Margin="0,43,4,53" TextWrapping="Wrap" Text="Detay" HorizontalAlignment="Right" Width="147" FontSize="13.333" Grid.Row="9" TextAlignment="Right" VerticalAlignment="Center" Height="26"/>
                    <Button x:Name="btnHesapKoduAra" Content="?" Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,100,2" Grid.Row="1" Width="32" BorderThickness="1" Click="btnHesapKoduAra_Click"/>
                    <Button x:Name="btnHesapAdiAra" Content="?" Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,100,2" Grid.Row="2" Width="32" BorderThickness="1" Click="btnHesapAdiAra_Click"/>
                    <dxe:SpinEdit x:Name="txtHour1" Grid.Column="1" Margin="138,1,0,1" Grid.Row="5" TextWrapping="Wrap" BorderThickness="1" HorizontalAlignment="Left" Width="50"   VerticalScrollBarVisibility="Visible"  />
                    <dxe:SpinEdit x:Name="txtMinute1" Grid.Column="1" Margin="191,1,0,1" Grid.Row="5" TextWrapping="Wrap" BorderThickness="1" HorizontalAlignment="Left" Width="50" VerticalScrollBarVisibility="Visible" />
                    <dxe:SpinEdit x:Name="txtHour2" Grid.Column="1" Margin="0,1,72,1" Grid.Row="5" TextWrapping="Wrap" BorderThickness="1" HorizontalAlignment="Right" Width="50" VerticalScrollBarVisibility="Visible" />
                    <dxe:SpinEdit x:Name="txtMinute2" Grid.Column="1" Margin="0,1,17,1" Grid.Row="5" TextWrapping="Wrap" BorderThickness="1" HorizontalAlignment="Right" Width="50"  VerticalScrollBarVisibility="Visible"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Ölçme ve Değerleme">
                <Grid Background="White">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.159*"/>
                        <ColumnDefinition Width="0.841*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="150"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <ComboBox x:Name="cmbFirmaDurum" Grid.Column="1" HorizontalAlignment="Left" Margin="4,2,0,2"  Width="203"/>
                    <TextBlock Margin="0,2,4,2" TextWrapping="Wrap" Text="Firma Durumu" VerticalAlignment="Center" FontSize="13.333" TextAlignment="Right" HorizontalAlignment="Right"/>
                    <TextBlock Margin="0,2,4,2" TextWrapping="Wrap" Text="Kapama Nedeni" FontSize="13.333" TextAlignment="Right" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
                    <ComboBox x:Name="cmbKapamaNedeni" Grid.Column="1" HorizontalAlignment="Left" Margin="4,2,0,2" Grid.Row="1"   Width="203"/>
                    <TextBlock Margin="0,2,4,0" TextWrapping="Wrap" Text="Notlar ve Değerlendirme" FontSize="13.333" TextAlignment="Right" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Right"/>
                    <TextBox x:Name="txtNotlar" Grid.Column="1" Margin="4,2,72,2" Grid.Row="2" TextWrapping="Wrap"/>
                    <dxg:AgDataGrid x:Name="grdKatilimci" Grid.ColumnSpan="2" Margin="4,2,4,4" AutoGenerateColumns="False" ColumnsAutoWidth="True" AllowEditing="False"  Grid.Row="6" RowClick="grdKatilimci_RowClick"/>
                    <TextBox x:Name="txtKatilimciAdi" Grid.Column="1" Margin="166,2,0,2" TextWrapping="Wrap" Grid.Row="3" HorizontalAlignment="Left" Width="138"/>
                    <ComboBox x:Name="cmbKatilimciTipi" Margin="4,2,0,2" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Width="110"/>
                    <TextBlock Margin="0,2,482,2" TextWrapping="Wrap" Text="Adı" FontSize="13.333" TextAlignment="Right" Grid.Row="3" HorizontalAlignment="Right" Grid.Column="1" Width="44" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtKatilimciSoyadi" Grid.Column="1" Margin="0,2,72,2" TextWrapping="Wrap" Grid.Row="3" HorizontalAlignment="Right" Width="138"/>
                    <TextBlock Margin="0,2,214,2" TextWrapping="Wrap" Text="Soyadı" FontSize="13.333" TextAlignment="Right" Grid.Row="3" HorizontalAlignment="Right" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="2.698,-0.263" Width="71" Grid.Column="1" VerticalAlignment="Center"/>
                    <TextBlock Margin="0,2,482,2" TextWrapping="Wrap" Text="Telefonu" FontSize="13.333" TextAlignment="Right" Grid.Row="4" HorizontalAlignment="Right" Width="61" Grid.Column="1" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    <TextBox x:Name="txtKatilimciTelefon" Grid.Column="1" Margin="166,2,0,2" TextWrapping="Wrap" Grid.Row="4" HorizontalAlignment="Left" Width="138"/>
                    <TextBox x:Name="txtKatilimciEmail" Grid.Column="1" Margin="0,2,72,2" TextWrapping="Wrap" Grid.Row="4" Width="138" HorizontalAlignment="Right" d:LayoutOverrides="Width, HorizontalMargin"/>
                    <TextBlock Margin="0,5,8,6" TextWrapping="Wrap" Text="Tipi" FontSize="13.333" TextAlignment="Right" Grid.Row="3" HorizontalAlignment="Right" Width="61" VerticalAlignment="Center"/>
                    <TextBlock Margin="0,2,214,2" TextWrapping="Wrap" Text="E-Mail" FontSize="13.333" TextAlignment="Right" Grid.Row="4" HorizontalAlignment="Right" Width="61" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment, Height" VerticalAlignment="Center"/>
                    <Button x:Name="btnEkle" Content="Ekle" Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,72,2" Grid.Row="5" Width="86" Click="btnEkle_Click_1"/>
                    <Button x:Name="btnCikar" Content="Çıkar" Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,162,2" Grid.Row="5" Width="86" Click="btnCikar_Click"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Teklifler">
                <Grid Margin="0">
                    <dxg:AgDataGrid Margin="4"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Durum Raporu">
                <Grid>
                    <dxg:AgDataGrid Margin="4"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Son Görüşmeler">
                <Grid>
                    <dxg:AgDataGrid Margin="4"/>
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
        <Button x:Name="btnKaydet" Content="İleri" HorizontalAlignment="Right" Margin="0,4,5,4" Grid.Row="2" Width="77" Click="btnKaydet_Click"/>
        <Grid Margin="0">
            <Button x:Name="btnSiparis" Content="Sipariş al" HorizontalAlignment="Right" Margin="0,0,0,2" Width="80"/>
            <Button x:Name="btnTeklif" Content="Teklif ver" HorizontalAlignment="Right" Margin="0,0,84,2" Width="80"/>
        </Grid>
    </Grid>
</controls:ChildWindow>